/**
 * @projectName demo-master
 * @fileName TestController.java
 * @packageName org.example.feign.controller
 * @author xaoyaoyao
 * @date 2021/3/24 17:09
 * @version V1.0
 * @copyright (c) 2021, xaoyaoyao@aliyun.com All Rights Reserved.
 */
package org.example.feign.controller;

import org.example.feign.client.RemoteClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className TestController
 * @description
 * @author xaoyaoyao
 * @date 2021/3/24 17:09
 */
@RestController
public class TestController {

	@Autowired
	private RemoteClient remoteClient;

	@GetMapping("/feign")
	public String test() {
		return remoteClient.helloNacos();
	}

}
